package nancal.mp.listener

import nancal.mp.model.OpsDeployModel
import nbcp.base.extend.*
import org.springframework.amqp.rabbit.annotation.RabbitListener
import org.springframework.stereotype.Component


@Component
class DeployListener {
    @RabbitListener(queues = arrayOf("deploy"))
    fun deploy(model: OpsDeployModel) {
        println(model.ToJson())
    }
}